package com.gcb.dao;

import com.gcb.pojo.CheckGroup;
import com.gcb.pojo.CheckItem;
import com.gcb.pojo.Setmeal;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author 35235
 * @Date 2021/8/6 13:02
 * @Version 1.0
 */
public interface SetMealDao {
    List<CheckGroup> findAllCheckgroup();

    Page<Setmeal> selectByCondition(String queryString);

    int insertSetMeal (Setmeal setmeal);

    int insertSetMealCheckGroup(Map map);

    int delete(Integer id);

    Setmeal findById(Integer id);

    Integer[] findCheckGroupIdsBySetMealId(Integer id);

    int updateSetMeal(Setmeal setmeal);

    int deleteSetMealCheckGroup(Integer setMealId);

    int deleteSetMealCheckGroup2(Map map);

    public List<Setmeal> findAll();

    public CheckGroup findCheckGroupById(Integer id);

    public List<CheckItem>findCheckItemsByIds(Integer[] ids);

    public     Setmeal findById4Detail(Integer id);

}
